package br.ufpi.esii.reqg.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Persistence;

@Entity
public class Alteracao extends Persistence {

	@Id
	private Long id;

	@ManyToOne( optional = false )
	private Usuario usuario;

	@Column( nullable = false )
	private Date data;

	@Lob
	private Object persistence;

	public Usuario getUsuario() {
		return usuario;
	}

	public void setUsuario( Usuario usuario ) {
		this.usuario = usuario;
	}

	public Date getData() {
		return data;
	}

	public void setData( Date data ) {
		this.data = data;
	}

	public void setPersistence( Object persistence ) {
		this.persistence = persistence;
	}

	public Object getPersistence() {
		return persistence;
	}

	public Long getId() {
		return id;
	}

	public void setId( Long id ) {
		this.id = id;
	}

}
